package com.whz.builder;

/**
 * @Author: sinosoft
 * @Description:
 * @Date: Create in 20:48 2021/4/28
 * @Modified By:
 */
public class PizzaMainTest {
    public static void main(String[] args) {
        /*大份披萨 加洋葱 加胡椒*/
        Pizza nyPizza = new NyPizza.Builder(NyPizza.Size.LARGE)
                                   .addTopping(Pizza.Topping.ONION)
                                   .addTopping(Pizza.Topping.PEPPER)
                                   .build();

        System.out.println(nyPizza);

        /*酱汁外置披萨 加洋葱加胡椒*/
        Pizza calzone = new Calzone.Builder()
                                    .sauceInside()
                                    .addTopping(Pizza.Topping.ONION)
                                    .addTopping(Pizza.Topping.PEPPER)
                                    .build();
        System.out.println(calzone);

    }
}
